package cn.jtool.dig.common.netty.supports;

/**
 * 协议相关常量
 */
public class Constants {

    public final static Integer JT_MIN_PACKET = 15;
    public final static Integer JT_MAX_PACKET = 1023;
    public final static byte JT_PACKET_BEGIN = 0x7E;
    public final static byte JT_PACKET_END=0x7E;

    public static byte[] JT_ESCAPE = new byte[]{0x7e, 0x7d};
    public static byte[][] JT_TO_ESCAPE = new byte[][]{{0x7D, 0x02}, {0x7D, 0x01}};

    public final static byte AGENT_PACKET_BEGIN = 0x5B;
    public final static byte AGENT_PACKET_END=0x5D;

    public final static Integer AGENT_MIN_PACKET = 9;

    public static byte[] AGENT_ESCAPE = new byte[]{0x5B, 0x5A, 0x5D, 0x5E};
    public static byte[][] AGENT_TO_ESCAPE = new byte[][]{{0x5A, 0x01}, {0x5A, 0x02}, {0x5E, 0x01}, {0x5E, 0x02}};

}
